<pro-header></pro-header>
<nz-card>

    <div nz-row>
        <div nz-col [nzSpan]="4" style="margin-bottom: 30px;">
            <button nz-button nzType="primary" routerLink="../add">新增新闻</button>
        </div>
    </div>
    <nz-table #nzTable [nzAjaxData]="data" [nzTotal]="total" [nzPageSize]="pagesize" [nzPageIndex]="pageCureent"
              (nzPageIndexChange)="getlist($event)"
    >
        <thead nz-thead>
        <tr>
            <th nz-th style="width: 10%;"><span>序号</span></th>
            <th nz-th style="width: 20%;"><span>标题</span></th>
            <th nz-th style="width: 10%;"><span>时间</span></th>
            <th nz-th style="width: 50%;"><span>内容简介</span></th>
            <th nz-th style="width: 10%;"><span>操作</span></th>
        </tr>
        </thead>
        <tbody nz-tbody>
        <tr nz-tbody-tr *ngFor="let item of nzTable.data;let i=index">
            <td nz-td>{{i+1}}</td>
            <td nz-td>{{item.title}}</td>
            <td nz-td>{{item.time}}</td>
            <td nz-td>{{item.subconent}}</td>
            <td nz-td>
                <a [routerLink]="['../show',item.id]">编辑</a>
                <span nz-table-divider></span>
                <a (click)="delnew(item)">删除</a>
            </td>
        </tr>

        </tbody>
    </nz-table>
</nz-card>
